﻿using System;

namespace LinkedListAndRecursion
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] nums = { 6,7,8 };

            int val = new Sum().sum(nums);

            ListNode head = new ListNode(nums);//数组转链表
            Console.WriteLine(head);

            ListNode res = new ListNode().removeElements3(head, 7);
            Console.WriteLine(head);

            res = new ListNode().removeElements(head, 3);
            Console.WriteLine(head);
        }
    }
}
